export default function(name){
	if(window.location.href.indexOf(name)!=-1){
		var url=window.location.href.split(name+'=')[1]
		if(url.indexOf("&")!=-1){
			url=url.split("&")[0]
		}

		return url
	}else{
		return
	}

}